<?php
Route::group([
//    'namespace' => 'Admin',
    'prefix' => 'admin'
], function () {
// 文件列表。
    Route::get('file/list', [
        'as' => 'AdminStorageList',
        'uses' => 'StorageController@getList'
    ]);

// 上传文件
    Route::post('file/put', [
        'as' => 'FileUpload',
        'uses' => 'StorageController@postFile'
    ]);

// 获取文件
    Route::get('file/fetch', [
        'as' => 'FilePull',
        'uses' => 'StorageController@getFile'
    ]);


// 文本编辑器上传文件
    Route::post('file/kedit-file', [
        'as' => 'KeditFilePull',
        'alias' => '文本编辑器上传文件',
        'uses' => 'StorageController@postKeditFile'
    ]);

    Route::post('file/plupload-file', [
        'as' => 'PluploadFilePull',
        'alias' => 'plupload插件上传文件',
        'uses' => 'StorageController@postPluploadFile'
    ]);

    Route::post('file/ckedit-file', [
        'as' => 'CkeditFilePull',
        'alias' => 'ckedit插件上传文件',
        'uses' => 'StorageController@postCkedit'
    ]);
});